<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><s:text name="system.page.title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.8.0.js" charset="utf-8"></script>
<script type="text/javascript" src="js/ready.js" charset="utf-8"></script>
<script type="text/javascript" src="js/win.js" charset="utf-8"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function editorCusorg() {
		formId.submit();
	}
	function openDistrict() {
		$.openWin({iframe:true,id:"districtWin",width:600,height:300,action:"selectDistrictPage.do",title:"选择区域"});
	}
	function settingDistrict(o) {
		$("#districtId").val(o.district_id);
		$("#districtName").val(o.district_name);
		$.closeWin("districtWin");
	}
</script>
</head>
<body>
<div class="tools">
	<div class="tool">
	<ul>
		<li>
			<div onclick="editorCusorg()"><img src="image/button/filesave.png" width="20" height="20"/><span><s:text name='system.button.save'/></span></div>
		</li>
		<li>
			<div><img src="image/button/ABORT20.gif"/><span><s:text name='system.button.channel'/></span></div>
		</li>
	</ul>
	</div>
</div>
<s:form action="editorCusorg.do" id="formId" name="formId">
<s:hidden name="bean.org_id"/>
<s:hidden name="parent_code"/>
<s:hidden name="dict_num"/>
<div class="formatClass">
	<div class="formatData">
		<div class="formatTitle"><span><s:text name='rec.cusorg'/></span></div>
		<div class="formatTable" style="height:100%;">
			<table border="0" cellpadding="0" cellspacing="0" width="100%" class="formatTable">
				<tr>
					<th><s:text name='rec.cusorg.org_name'/></th>
					<td><s:textfield name="bean.org_name" cssStyle="width:190px;"/></td>
				</tr>
				<tr>	
					<th><s:text name='rec.cusorg.district_id'/></th>
					<td>
						<s:hidden name="bean.district_id" cssStyle="width:190px;" id="districtId"/>
						<s:textfield name="bean.district_name" cssStyle="width:190px;" id="districtName"/>
						<input type="button" value="选择地区" onclick="openDistrict();"/>
					</td>
				</tr>
				<tr>
					<th><s:text name='rec.cusorg.jane_spell'/></th>
					<td><s:textfield name="bean.jane_spell" cssStyle="width:190px;"/></td>
				</tr>
				<tr>	
					<th><s:text name='rec.cusorg.telphone'/></th>
					<td><s:textfield name="bean.telphone" cssStyle="width:190px;"/></td>
				</tr>
				<tr>	
					<th><s:text name='rec.cusorg.email'/></th>
					<td><s:textfield name="bean.email" cssStyle="width:190px;"/></td>
				</tr>
				<tr>
					<th><s:text name='rec.cusorg.address'/></th>
					<td><s:textfield name="bean.address" cssStyle="width:190px;"/></td>
				</tr>
				<tr>
					<th><s:text name='rec.cusorg.linkman'/></th>
					<td><s:textfield name="bean.linkman" cssStyle="width:190px;"/></td>
				</tr>
				<tr>	
					<th><s:text name='rec.cusorg.phone'/></th>
					<td><s:textfield name="bean.phone" cssStyle="width:190px;"/></td>
				</tr>
			</table>
		</div>
	</div>
</div>
</s:form>
</body>
</html>